<template>
    <div>
      <button @click="go">去首页</button>
    </div>
  </template>
  
  <script>
  import router from '../../router';
  import { useRoute } from 'vue-router'
  
  export default {
    props: {
      username: String,
    },
    setup() {
      const route = useRoute()
  
      const go = () => {
        router.push('/zong')
      }
  
      return { route, go }
    },
  }
  </script>
  